from coin.support.accounting.logic.key_util import get_key_file_impl


def get_key_test(test_type, market_type, exchange, api_version=None):
  if test_type == "view":
    root = "../../coin_key/view"
    filename = "view_key.json"
  elif test_type == "trade":
    root = "../../coin_key_high/trade"
    filename = "trade_key.json"
  else:
    raise ValueError()

  owner = "pilot01"
  if exchange == "Bitfinex":
    owner = "jshin2"
  elif exchange == "Bitflyer":
    owner = "japan1"
  elif exchange == 'Okex':
    owner = "jshin1"

  return get_key_file_impl(root, filename, market_type, exchange, owner, api_version, "view")
